//从webStorage里存数据
export const saveWebStorage=(webStorage,key,data)=>{
 return webStorage.setItem(key,JSON.stringify(data))
}
//从webStorage里取数据
export const getWebStorage=(key)=>{
  return JSON.parse(localStorage.getItem(key)||sessionStorage.getItem(key))
 }
 //从webStorage里删除数据
 export const removeWebStorage=(key)=>{
   return localStorage.removeItem(key)||sessionStorage.removeItem(key)
 }